# -*- mode: cmake -*-
# Create a library called "lib<name>" which includes the source files given in
# the array .
# The extension is already found.  Any number of sources could be listed here.

set(INCLUDE_DIRECTORIES
${CMAKE_SOURCE_DIR}/BASE
${CMAKE_SOURCE_DIR}/PHYSICS
${CMAKE_SOURCE_DIR}/SIM
${CMAKE_SOURCE_DIR}/EVE
${CMAKE_SOURCE_DIR}/coldpig
${ROOT_INCLUDE_DIR}
)

include_directories( ${INCLUDE_DIRECTORIES})

set(LINK_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}
${ROOT_LIBRARY_DIR}
) 

link_directories( ${LINK_DIRECTORIES})

Set(LIBS CPBase CPPhysics CPSim CPEve)

AddExecutable(coldpig CpMain.cxx "${LIBS}")
AddExecutable(coldpig-fit CpFitMain.cxx "${LIBS}")
AddExecutable(coldpig-sim CpSimMain.cxx "${LIBS}")
